window: Fix state updates
authorMatthias Clasen <mclasen@redhat.com>
Fri, 23 Oct 2020 15:51:02 +0000 (11:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 23 Oct 2020 15:51:02 +0000 (11:51 -0400)
commit10d7ccc8e0ecfc267b8e3f803abb6bd04eb628a9
treef6798747d45774d0fd8889135eea0d25be4a3f5d
parent7671c1074b524fb56a6dde29180faa595d358050
window: Fix state updates

When the compositor unmaximized the window, we get a
state-changed signal, and we update the maximized field.
But then we go and recompute our layout based on the
maximize_initially field, and that is still TRUE, when
we were maximized initially. So we need to update both
fields.

This fixes a problem where using the window menu to
unmaximize an initially maximized window would not
work.

Fixes: #3226
gtk/gtkwindow.c